package com.hzy.orderSystem.service;

import com.github.pagehelper.Page;
import com.hzy.orderSystem.dao.UserDao;
import com.hzy.orderSystem.entities.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 小宝
 * @create 2021/4/16 13:57
 */
public interface UserService {

    public User getUserByUsernameAndPassword(@Param("username") String username,
                                             @Param("password") String password);

    public int updateUser(User user);

    public User getUserByUsername(@Param("username") String username);

    public int save(User user);

    public Page<User> getUsersByStatus(@Param("status") int status);
}
